<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/10/12 0012
 * Time: 15:43
 */

use Hyperf\Crontab\Crontab;

return [
    // 是否开启定时任务
    'enable' => false,
    'crontab' => [
        (new Crontab())->setName('MethodTask')->setRule('*\/5 * * * * *')
            ->setCallback([App\Tasks\MethodTask::class, 'execute'])
            ->setMemo('这是一个示例的定时任务'),
    ]
];
